//
//  carEndTheTripVCCell.m
//  YueYueSpecailCarDriver
//
//  Created by 李亚军 on 17/3/8.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import "carEndTheTripVCCell.h"
#import "DetailsOfChargesModel.h"
#import "IPDashedLineView.h"
#import "HeaderMacro.h"
@implementation carEndTheTripVCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.dashedLineView.lineColor = Color_6b7886;
    self.dashedLineView.lengthPattern = @[@(3)];
}

- (void)setValueWithDetailsOfChargesModel:(DetailsOfChargesModel *)model {
    
    if (model.item && model.item.length > 0) {
        
        self.itemName.text = model.item;
    }else {
        
        self.itemName.text = @"";
    }
    
    if (model.cost && model.cost.length > 0) {
        
        self.fare.text = [NSString stringWithFormat:@"%@元" , model.cost];
    }else {
        
        self.fare.text = @"";
    }
    
    self.itemInfo.hidden = YES;
    
    self.itemInfo.text = @"";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
